Skip to content

Conversation

decioferreira
Copy link

@decioferreira decioferreira commented Apr 13, 2020

SSCCE: https://ellie-app.com/8zCdXgf99qCa1

On the SSCCE above I would expect the decoders for both childNodes (NodeList) and children (HTMLCollection) to decode correctly to a list - this is similar to how it currently handles FileList.

Found this issue when trying to implement a flexible data table, similar to the one shown here: https://adamlynch.com/flexible-data-tables-with-css-grid/#resizing-columns-with-grid

This is similar to #9.

@decioferreira
Copy link
Author

decioferreira commented Apr 13, 2020

as mentioned on a conversation on elm-slack about this issue, a known workaround is to use https://package.elm-lang.org/packages/debois/elm-dom/latest/DOM#childNodes or to adapt it to our needs

@rupertlssmith
Copy link

rupertlssmith commented Feb 11, 2022

I create an Ellie which logs the fail outputs of the decoders, to make it clearer what this Ellie is testing.

https://ellie-app.com/gFrTm87Fz6wa1

rupertlssmith pushed a commit to elm-janitor/json that referenced this pull request Feb 17, 2023
Make HTMLCollection and NodeList valid array types
rupertlssmith pushed a commit to elm-janitor/json that referenced this pull request Feb 17, 2023
Make HTMLCollection and NodeList valid array types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants